package effective.java.item59;


import java.math.BigDecimal;

public class demo {
    public static void main(String[] args)  {
        int a = 1; // 0.1转换为整数，乘以10
        int b = 2; // 0.2转换为整数，乘以10
        int sum = a + b;
        double finalSum = sum / 10.0; // 将整数结果转换回小数
        System.out.println(finalSum);
    }
}
